package org.erp.spu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.erp.common.page.PageQueryModel;
import org.erp.spu.entity.SpuSeries;
import org.erp.spu.entity.bo.SpuSeriesBo;
import org.erp.spu.entity.dto.SpuSeriesDto;
import org.erp.spu.entity.vo.SpuSeriesVo;

import java.util.List;

/**
 * 系列表(SpuSeries)表服务接口
 *
 * @author dingding
 * @since 2025-11-05 17:45:57
 */
public interface SpuSeriesService extends IService<SpuSeries> {
    /**
     * 获取所有数据
     *
     * @param spuSeriesBo
     * @return
     */
    List<SpuSeriesVo> getList(SpuSeriesBo spuSeriesBo);

    /**
     * 分页查询所有数据
     *
     * @param spuSeriesDto
     * @return
     */
    PageQueryModel<SpuSeriesVo> getListByPage(SpuSeriesDto spuSeriesDto);

    /**
     * 新增数据
     *
     * @param spuSeriesDto
     * @return
     */
    boolean addSpuSeries(SpuSeriesDto spuSeriesDto);

    /**
     * 修改数据
     *
     * @param spuSeriesDto
     * @return
     */
    boolean updateSpuSeries(SpuSeriesDto spuSeriesDto);

    /**
     * 详情数据
     *
     * @param id 主键
     * @return
     */
    SpuSeriesVo getSpuSeriesVoById(Long id);
}
